<template>
  <div class="topNav">
    <van-nav-bar left-arrow @click-left="goBack">
      <template #right>
        <div class="right-title" @click="goHome">先逛一逛</div>
      </template>
    </van-nav-bar>
  </div>
</template>

<script>
import '../assets/less/topNav.less'
export default {
    name: 'TopNav',
    methods: {
      goHome() {
        this.$router.push({path: '/'});
      },

      goBack() {
        this.$router.back();
      }
    }
};
</script>
